
package com.ce.cases.source.view;

import java.util.Date;

import com.ce.cases.source.dao.po.CaseSource;
import com.ce.framework.util.DateUtil;

/**
* 嫦娥软件有限公司 版权所有 2013
* 创建人：　andy
* 创建日期：2014-03-18
* 创建时间：15:29:27
* 功能描述：备选案源台账 [CASE_SOURCE]视图类
* ==============================================
* 修改历史
* 修改人		修改时间		修改原因
*
* ==============================================
*/
public class CaseSourceView extends  CaseSource 
{
	private Date downDate;
	private String downDateString;
	private String vcStatus_;
	private String vcStatus_Info;

	private String endDateString;

	
	private String hearIllegalTypeName;//实际违法类型


	public Date getDownDate() {
		return downDate;
	}

	public void setDownDate(Date downDate) {
		this.downDate = downDate;
	}

	public String getDownDateString() {
		if(downDate!=null){
			downDateString=DateUtil.format(downDate, "yyyy-MM-dd");
		}
		return downDateString;
	}

	public String getVcStatus_() {
		return vcStatus_;
	}

	public void setVcStatus_(String vcStatus_) {
		this.vcStatus_ = vcStatus_;
	}

	public String getVcStatus_Info() {
		
		String statuInfo="";
		if("0".equals(vcStatus_)){
			statuInfo="待签收";
		}else if("1".equals(vcStatus_)){
			statuInfo="已签收";
		}
		if (1==this.getState()) {
			return "选案 "+statuInfo;
		} else if (2==this.getState()) {
			return "检查 "+statuInfo;
		} else if (3==this.getState()) {
			return "审理 "+statuInfo;
		} else if (4==this.getState()) {
			return "执行 "+statuInfo;
		} else if (9==this.getState()) {
			return "结案";
		} else if (-2==this.getState()) {
			return "暂存待查";
		}else{
			return "未下达";
		}
		
	}
	
	

	public String getHearIllegalTypeName() {
		return hearIllegalTypeName;
	}

	public void setHearIllegalTypeName(String hearIllegalTypeName) {
		this.hearIllegalTypeName = hearIllegalTypeName;
	}

	public void setVcStatus_Info(String vcStatus_Info) {
		this.vcStatus_Info = vcStatus_Info;
	}

	public String getEndDateString() {
		if(this.getEndDate()!=null){
			endDateString=DateUtil.format(this.getEndDate(), "yyyy-MM-dd");
		}
		return endDateString;
	}

	public void setEndDateString(String endDateString) {
		this.endDateString = endDateString;
	}

	public void setDownDateString(String downDateString) {
		this.downDateString = downDateString;
	}
	
	
}

